//判断是否安装了VLC播放器
function isInsalledIEVLC(){ 
    
    var vlcObj = null;
    var vlcInstalled= false;
    
    try {
        vlcObj = new ActiveXObject("VideoLAN.Vlcplugin.2"); 
        if( vlcObj != null ){ 
            vlcInstalled = true 
        }
    } catch (e) {
        vlcInstalled= false;
    }    
    return vlcInstalled;
} 

function isInsalledFFVLC(){
     var numPlugins=navigator.plugins.length;
     for  (i=0;i<numPlugins;i++)
     {
          plugin=navigator.plugins[i];
          if(plugin.name.indexOf("VideoLAN") > -1 || plugin.name.indexOf("VLC") > -1)
        {           
             return true;
        }
     }
     return false;
}
    
function isIE() { //判断是否是IE浏览器
    if (!!window.ActiveXObject || "ActiveXObject" in window){
       return true;
     }else{
       return false;
        }
    }
    
function isInstallVLC(){
    var isvlc = false;
    if(isIE()){
    isvlc = isInsalledIEVLC();
    }else{
    isvlc = isInsalledFFVLC();
    }
    return isvlc;
}